import http from '@/utils/fetch'

/**
 * 产品列表
 */
// 产品列表
export function productList(params) {
    return http.post('/Admin/RentSupermarket/productList', params)
}

export function selectCategoryId(params) {
    return http.post('/Admin/RentSupermarket/selectCategoryId', params)
}

export function selectCategoryParents(params) {
    return http.post('/Admin/RentSupermarket/selectCategoryParents', params)
}

export function statusPrduct(params) {
    return http.post('/Admin/RentSupermarket/statusPrduct', params)
}


export function delProduct(params) {
    return http.post('/Admin/RentSupermarket/delProduct', params)
}

export function updateProduct(params) {
    return http.post('/Admin/RentSupermarket/updateProduct', params)
}

// 根据id编辑商户分类信息的审核状态(通过、拒绝)
export function editUserIscheck(params) {
    return http.post(
        '/Admin/CategoryExamine/editCategoryUserIscheck',
        params,
        true
    )
}
